package com.rpc.framework.cdec;

import com.alibaba.fastjson.JSON;

/**
 * Created by tan on 2017/9/1.
 */
public class JsonDecoder implements Decoder{
	@Override
	public <T> T decode(byte[] data, Class<T> clazz) throws Exception {
		return JSON.parseObject(new String(data,"utf-8"),clazz);
	}
}
